.class public Lcom/estrongs/android/pop/app/ESUsePromptActivity;
.super Lcom/estrongs/android/pop/esclasses/ESActivity;
.source "ESUsePromptActivity.java"


# instance fields
.field d:Lcom/estrongs/android/ui/dialog/q;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-object v0, p0, Lcom/estrongs/android/pop/app/ESUsePromptActivity;->d:Lcom/estrongs/android/ui/dialog/q;

    return-void
.end method

.method private A()Lcom/estrongs/android/ui/dialog/q;
    .locals 17

    move-object/from16 v1, p0

    const-string v0, "0"

    const/4 v2, 0x0

    .line 1
    :try_start_0
    invoke-static/range {p0 .. p0}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v3

    const v4, 0x7f0c015f

    invoke-virtual {v3, v4, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    const v4, 0x7f09051a

    .line 2
    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/ImageView;

    const v5, 0x7f090824

    .line 3
    invoke-virtual {v3, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    const v6, 0x7f09092b

    .line 4
    invoke-virtual {v3, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/ProgressBar;

    const v7, 0x7f090163

    .line 5
    invoke-virtual {v3, v7}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/TextView;

    const v8, 0x7f090bea

    .line 6
    invoke-virtual {v3, v8}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v8

    check-cast v8, Landroid/widget/TextView;

    const v9, 0x7f080776

    .line 7
    invoke-virtual {v4, v9}, Landroid/widget/ImageView;->setImageResource(I)V

    const v4, 0x7f0906cc

    .line 8
    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    const/4 v9, 0x0

    .line 9
    invoke-virtual {v4, v9}, Landroid/view/View;->setClickable(Z)V

    .line 10
    invoke-static {}, Lcom/estrongs/android/pop/c;->b()Ljava/lang/String;

    move-result-object v4

    .line 11
    invoke-static {v4}, Lcom/estrongs/android/pop/j;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v5, v10}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 12
    invoke-static {v4}, Lcom/estrongs/fs/util/f;->h(Ljava/lang/String;)[J

    move-result-object v4

    .line 13
    aget-wide v10, v4, v9

    const/4 v5, 0x1

    aget-wide v12, v4, v5

    sub-long/2addr v10, v12

    const/4 v5, 0x2

    aget-wide v12, v4, v5

    mul-long v10, v10, v12

    .line 14
    aget-wide v12, v4, v9

    aget-wide v14, v4, v5

    mul-long v12, v12, v14

    const-wide/32 v4, 0x7fffffff

    const-wide/16 v14, 0x0

    cmp-long v16, v10, v14

    if-ltz v16, :cond_2

    cmp-long v16, v12, v14

    if-gez v16, :cond_0

    goto :goto_0

    :cond_0
    cmp-long v0, v12, v4

    if-lez v0, :cond_1

    .line 15
    invoke-static {v10, v11}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v7, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 16
    invoke-static {v12, v13}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v8, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    .line 17
    :cond_1
    invoke-static {v10, v11}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v7, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 18
    invoke-static {v12, v13}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v8, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    .line 19
    :cond_2
    :goto_0
    invoke-virtual {v7, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 20
    invoke-virtual {v8, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_1
    cmp-long v0, v10, v14

    if-ltz v0, :cond_5

    cmp-long v0, v12, v14

    if-gez v0, :cond_3

    goto :goto_2

    :cond_3
    cmp-long v0, v12, v4

    if-lez v0, :cond_4

    const-wide/16 v4, 0x2710

    .line 21
    div-long/2addr v10, v4

    long-to-int v0, v10

    .line 22
    div-long/2addr v12, v4

    long-to-int v4, v12

    .line 23
    invoke-virtual {v6, v4}, Landroid/widget/ProgressBar;->setMax(I)V

    .line 24
    invoke-virtual {v6, v0}, Landroid/widget/ProgressBar;->setProgress(I)V

    goto :goto_3

    :cond_4
    long-to-int v0, v12

    .line 25
    invoke-virtual {v6, v0}, Landroid/widget/ProgressBar;->setMax(I)V

    long-to-int v0, v10

    .line 26
    invoke-virtual {v6, v0}, Landroid/widget/ProgressBar;->setProgress(I)V

    goto :goto_3

    :cond_5
    :goto_2
    const/16 v0, 0x64

    .line 27
    invoke-virtual {v6, v0}, Landroid/widget/ProgressBar;->setMax(I)V

    .line 28
    invoke-virtual {v6, v9}, Landroid/widget/ProgressBar;->setProgress(I)V

    .line 29
    :goto_3
    new-instance v0, Lcom/estrongs/android/ui/dialog/q$n;

    invoke-direct {v0, v1}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    const v4, 0x7f110122

    .line 30
    invoke-virtual {v0, v4}, Lcom/estrongs/android/ui/dialog/q$n;->b(I)Lcom/estrongs/android/ui/dialog/q$n;

    .line 31
    invoke-virtual {v0, v3}, Lcom/estrongs/android/ui/dialog/q$n;->a(Landroid/view/View;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 32
    invoke-virtual {v0, v9}, Lcom/estrongs/android/ui/dialog/q$n;->a(Z)Lcom/estrongs/android/ui/dialog/q$n;

    const v3, 0x7f11029e

    .line 33
    new-instance v4, Lcom/estrongs/android/pop/app/ESUsePromptActivity$a;

    invoke-direct {v4, v1}, Lcom/estrongs/android/pop/app/ESUsePromptActivity$a;-><init>(Lcom/estrongs/android/pop/app/ESUsePromptActivity;)V

    invoke-virtual {v0, v3, v4}, Lcom/estrongs/android/ui/dialog/q$n;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    const v3, 0x7f110299

    .line 34
    new-instance v4, Lcom/estrongs/android/pop/app/ESUsePromptActivity$b;

    invoke-direct {v4, v1}, Lcom/estrongs/android/pop/app/ESUsePromptActivity$b;-><init>(Lcom/estrongs/android/pop/app/ESUsePromptActivity;)V

    invoke-virtual {v0, v3, v4}, Lcom/estrongs/android/ui/dialog/q$n;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 35
    new-instance v3, Lcom/estrongs/android/pop/app/ESUsePromptActivity$c;

    invoke-direct {v3, v1}, Lcom/estrongs/android/pop/app/ESUsePromptActivity$c;-><init>(Lcom/estrongs/android/pop/app/ESUsePromptActivity;)V

    invoke-virtual {v0, v3}, Lcom/estrongs/android/ui/dialog/q$n;->a(Landroid/content/DialogInterface$OnDismissListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 36
    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q$n;->a()Lcom/estrongs/android/ui/dialog/q;

    move-result-object v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object v0

    :catch_0
    move-exception v0

    .line 37
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    return-object v2
.end method


# virtual methods
.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onConfigurationChanged(Landroid/content/res/Configuration;)V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    .line 3
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/ESUsePromptActivity;->A()Lcom/estrongs/android/ui/dialog/q;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/pop/app/ESUsePromptActivity;->d:Lcom/estrongs/android/ui/dialog/q;

    if-nez p1, :cond_0

    .line 4
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    .line 5
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/pop/app/ESUsePromptActivity;->d:Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/q;->show()V

    return-void
.end method

.method public onDestroy()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onDestroy()V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/ESUsePromptActivity;->d:Lcom/estrongs/android/ui/dialog/q;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/app/Dialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/ESUsePromptActivity;->d:Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q;->dismiss()V

    :cond_0
    return-void
.end method

.method public onPause()V
    .locals 0

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onPause()V

    return-void
.end method

.method public onResume()V
    .locals 0

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onResume()V

    return-void
.end method
